3.1869 \(\int (a+b x)^{-3-n} (c+d x)^n \, dx\)

Optimal. Leaf size=80 \[ \frac{d (a+b x)^{-n-1} (c+d x)^{n+1}}{(n+1) (n+2) (b c-a d)^2}-\frac{(a+b x)^{-n-2} (c+d x)^{n+1}}{(n+2) (b c-a d)} \]

[Out]

-(((a + b*x)^(-2 - n)*(c + d*x)^(1 + n))/((b*c - a*d)*(2 + n))) + (d*(a + b*x)^(-1 - n)*(c + d*x)^(1 + n))/((b
*c - a*d)^2*(1 + n)*(2 + n))

________________________________________________________________________________________

Rubi [A]  time = 0.0197497, antiderivative size = 80, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {45, 37} \[ \frac{d (a+b x)^{-n-1} (c+d x)^{n+1}}{(n+1) (n+2) (b c-a d)^2}-\frac{(a+b x)^{-n-2} (c+d x)^{n+1}}{(n+2) (b c-a d)} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*x)^(-3 - n)*(c + d*x)^n,x]

[Out]

-(((a + b*x)^(-2 - n)*(c + d*x)^(1 + n))/((b*c - a*d)*(2 + n))) + (d*(a + b*x)^(-1 - n)*(c + d*x)^(1 + n))/((b
*c - a*d)^2*(1 + n)*(2 + n))

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^(n + 1
))/((b*c - a*d)*(m + 1)), x] - Dist[(d*Simplify[m + n + 2])/((b*c - a*d)*(m + 1)), Int[(a + b*x)^Simplify[m +
1]*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && ILtQ[Simplify[m + n + 2], 0] &&
 NeQ[m, -1] &&  !(LtQ[m, -1] && LtQ[n, -1] && (EqQ[a, 0] || (NeQ[c, 0] && LtQ[m - n, 0] && IntegerQ[n]))) && (
SumSimplerQ[m, 1] ||  !SumSimplerQ[n, 1])

Rule 37

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^(n +
1))/((b*c - a*d)*(m + 1)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[m + n + 2, 0] && NeQ
[m, -1]

Rubi steps

\begin{align*} \int (a+b x)^{-3-n} (c+d x)^n \, dx &=-\frac{(a+b x)^{-2-n} (c+d x)^{1+n}}{(b c-a d) (2+n)}-\frac{d \int (a+b x)^{-2-n} (c+d x)^n \, dx}{(b c-a d) (2+n)}\\ &=-\frac{(a+b x)^{-2-n} (c+d x)^{1+n}}{(b c-a d) (2+n)}+\frac{d (a+b x)^{-1-n} (c+d x)^{1+n}}{(b c-a d)^2 (1+n) (2+n)}\\ \end{align*}

Mathematica [A]  time = 0.0287897, size = 60, normalized size = 0.75 \[ \frac{(a+b x)^{-n-2} (c+d x)^{n+1} (a d (n+2)-b (c n+c-d x))}{(n+1) (n+2) (b c-a d)^2} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)^(-3 - n)*(c + d*x)^n,x]

[Out]

((a + b*x)^(-2 - n)*(c + d*x)^(1 + n)*(a*d*(2 + n) - b*(c + c*n - d*x)))/((b*c - a*d)^2*(1 + n)*(2 + n))

________________________________________________________________________________________

Maple [A]  time = 0.004, size = 123, normalized size = 1.5 \begin{align*}{\frac{ \left ( bx+a \right ) ^{-2-n} \left ( dx+c \right ) ^{1+n} \left ( adn-bcn+bdx+2\,ad-bc \right ) }{{a}^{2}{d}^{2}{n}^{2}-2\,abcd{n}^{2}+{b}^{2}{c}^{2}{n}^{2}+3\,{a}^{2}{d}^{2}n-6\,abcdn+3\,{b}^{2}{c}^{2}n+2\,{a}^{2}{d}^{2}-4\,abcd+2\,{b}^{2}{c}^{2}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^(-3-n)*(d*x+c)^n,x)

[Out]

(b*x+a)^(-2-n)*(d*x+c)^(1+n)*(a*d*n-b*c*n+b*d*x+2*a*d-b*c)/(a^2*d^2*n^2-2*a*b*c*d*n^2+b^2*c^2*n^2+3*a^2*d^2*n-
6*a*b*c*d*n+3*b^2*c^2*n+2*a^2*d^2-4*a*b*c*d+2*b^2*c^2)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b x + a\right )}^{-n - 3}{\left (d x + c\right )}^{n}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^(-3-n)*(d*x+c)^n,x, algorithm="maxima")

[Out]

integrate((b*x + a)^(-n - 3)*(d*x + c)^n, x)

________________________________________________________________________________________

Fricas [B]  time = 2.26891, size = 416, normalized size = 5.2 \begin{align*} \frac{{\left (b^{2} d^{2} x^{3} - a b c^{2} + 2 \, a^{2} c d +{\left (3 \, a b d^{2} -{\left (b^{2} c d - a b d^{2}\right )} n\right )} x^{2} -{\left (a b c^{2} - a^{2} c d\right )} n -{\left (b^{2} c^{2} - 2 \, a b c d - 2 \, a^{2} d^{2} +{\left (b^{2} c^{2} - a^{2} d^{2}\right )} n\right )} x\right )}{\left (b x + a\right )}^{-n - 3}{\left (d x + c\right )}^{n}}{2 \, b^{2} c^{2} - 4 \, a b c d + 2 \, a^{2} d^{2} +{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} n^{2} + 3 \,{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^(-3-n)*(d*x+c)^n,x, algorithm="fricas")

[Out]

(b^2*d^2*x^3 - a*b*c^2 + 2*a^2*c*d + (3*a*b*d^2 - (b^2*c*d - a*b*d^2)*n)*x^2 - (a*b*c^2 - a^2*c*d)*n - (b^2*c^
2 - 2*a*b*c*d - 2*a^2*d^2 + (b^2*c^2 - a^2*d^2)*n)*x)*(b*x + a)^(-n - 3)*(d*x + c)^n/(2*b^2*c^2 - 4*a*b*c*d +
2*a^2*d^2 + (b^2*c^2 - 2*a*b*c*d + a^2*d^2)*n^2 + 3*(b^2*c^2 - 2*a*b*c*d + a^2*d^2)*n)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**(-3-n)*(d*x+c)**n,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b x + a\right )}^{-n - 3}{\left (d x + c\right )}^{n}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^(-3-n)*(d*x+c)^n,x, algorithm="giac")

[Out]

integrate((b*x + a)^(-n - 3)*(d*x + c)^n, x)